package com.ruoyi.qymlxin.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 菜单信息对象 isys_menu
 * 
 * @author qymlxin
 * @date 2022-05-03
 */
public class ISysMenu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 父菜单ID，一级菜单为0 */
    @Excel(name = "父菜单ID，一级菜单为0")
    private Long parentId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 菜单URL */
    @Excel(name = "菜单URL")
    private String path;

    /** 权限 */
    @Excel(name = "权限")
    private String perms;

    /** 组件 */
    @Excel(name = "组件")
    private String component;

    /** 类型 */
    @Excel(name = "类型")
    private Long type;

    /** 菜单图标 */
    @Excel(name = "菜单图标")
    private String icon;

    /** 排序 */
    @Excel(name = "排序")
    private Long ordernum;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updated;

    /** 状态 */
    @Excel(name = "状态")
    private Long statu;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPath(String path) 
    {
        this.path = path;
    }

    public String getPath() 
    {
        return path;
    }
    public void setPerms(String perms) 
    {
        this.perms = perms;
    }

    public String getPerms() 
    {
        return perms;
    }
    public void setComponent(String component) 
    {
        this.component = component;
    }

    public String getComponent() 
    {
        return component;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }
    public void setOrdernum(Long ordernum) 
    {
        this.ordernum = ordernum;
    }

    public Long getOrdernum() 
    {
        return ordernum;
    }
    public void setCreated(Date created) 
    {
        this.created = created;
    }

    public Date getCreated() 
    {
        return created;
    }
    public void setUpdated(Date updated) 
    {
        this.updated = updated;
    }

    public Date getUpdated() 
    {
        return updated;
    }
    public void setStatu(Long statu) 
    {
        this.statu = statu;
    }

    public Long getStatu() 
    {
        return statu;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("path", getPath())
            .append("perms", getPerms())
            .append("component", getComponent())
            .append("type", getType())
            .append("icon", getIcon())
            .append("ordernum", getOrdernum())
            .append("created", getCreated())
            .append("updated", getUpdated())
            .append("statu", getStatu())
            .toString();
    }
}
